package com.stark.exp.autoconfig.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

public class NoticeEvent extends ApplicationEvent {

    private static final Logger logger = LoggerFactory.getLogger(NoticeEvent.class);

    String message;

    public NoticeEvent(String message) {
        super(message);
        this.message = message;
        logger.info("Event registered successfully : {}",message);
    }

    public String getMessage() {
        return message;
    }
}
